﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Inv.master" AutoEventWireup="true" CodeFile="CheckInventory.aspx.cs" Inherits="CheckInventory" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 700px;">
        <tr>
            <td>
                Category:
                <asp:DropDownList ID="ddlCategory" runat="server" Height="16px" 
                    onselectedindexchanged="ddlCategory_SelectedIndexChanged" Width="105px" 
                    AutoPostBack="True">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="gvInventory" runat="server" 
                    AutoGenerateColumns="False" Width="700px">
                    <Columns>
                        <asp:TemplateField HeaderText="Item Code">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ItemNumber") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("ItemNumber") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Font-Size="Smaller" />
                            <HeaderStyle Font-Size="Smaller" />
                            <ItemStyle Width="70px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Category">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Category") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("Category") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Size="Smaller" />
                            <ItemStyle Width="100px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Item Desc">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("ItemDesc") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label3" runat="server" Text='<%# Bind("ItemDesc") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Size="Smaller" />
                            <ItemStyle Width="300px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="UOM">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("UOM") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label4" runat="server" Text='<%# Bind("UOM") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Size="Smaller" />
                            <ItemStyle Width="200px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Bin">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("Bin") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label5" runat="server" Text='<%# Bind("Bin") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Size="Smaller" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Balance">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("Balance") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label6" runat="server" Text='<%# Bind("Balance") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Size="Smaller" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Reorder Level">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("ReorderLevel") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label7" runat="server" Text='<%# Bind("ReorderLevel") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Size="Smaller" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="On Order Qty">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("OnOrderQty") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label8" runat="server" Text='<%# Bind("OnOrderQty") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Size="Smaller" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right">
                <asp:Button ID="btnUnsafeStock" runat="server" Text="Unsafe Stock" 
                    onclick="btnUnsafeStock_Click" Width="95px" />
            </td>
        </tr>
    </table>
</asp:Content>

